package zk_project;

import java.rmi.RemoteException;

import com.tim.ying.zk.consumer.ZKServiceConsumer;
import com.tim.ying.zk.service.HelloService;

public class ZKClient {
	public static void main(String[] args) throws RemoteException, InterruptedException {
		ZKServiceConsumer zkConsumer = new ZKServiceConsumer();
		while(true){
			HelloService service = zkConsumer.lookup();
			service.helloWord();
			Thread.sleep(3000L);
		}
	}
}
